package com.yuanlrc.base.dao.admin;

import com.yuanlrc.base.entity.admin.Book;
import com.yuanlrc.base.entity.admin.BookCategory;
import com.yuanlrc.base.entity.admin.Menu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import javax.persistence.Entity;

@Repository
public interface BookCategoryDao  extends JpaRepository<BookCategory,Long> {
    @Query("select b from BookCategory b where b.id = :id")
            BookCategory find(@Param("id") Long id);
}
